package com.ifood.common.core.domain.entity;

import java.math.BigDecimal;

import com.ifood.common.annotation.Excel;
import com.ifood.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品基本信息对象 i_food_product_info
 *
 * @author ifood
 * @date 2024-01-12
 */
public class IFoodProductInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("商品主键")
    private String productId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    @ApiModelProperty("商品名称")
    private String productName;

    /**
     * 单价
     */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private BigDecimal productPrice;

    /**
     * 库存
     */
    @Excel(name = "库存")
    @ApiModelProperty("库存")
    private Long productStock;

    /**
     * 描述
     */
    @Excel(name = "描述")
    @ApiModelProperty("描述")
    private String productDescription;

    /**
     * 小图
     */
    @Excel(name = "小图")
    @ApiModelProperty("小图")
    private String productIcon;

    /**
     * 商品状态,0正常1下架
     */
    @Excel(name = "商品状态,0正常1下架")
    @ApiModelProperty("商品状态,0正常1下架")
    private Long productStatus;

    /**
     * 类目编号
     */
    @Excel(name = "类目编号")
    @ApiModelProperty("类目编号")
    private Long categoryType;

    /**
     * 是否删除0默认1删除
     */
    @ApiModelProperty("类目编号")
    private String delFlag;

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductStock(Long productStock) {
        this.productStock = productStock;
    }

    public Long getProductStock() {
        return productStock;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductIcon(String productIcon) {
        this.productIcon = productIcon;
    }

    public String getProductIcon() {
        return productIcon;
    }

    public void setProductStatus(Long productStatus) {
        this.productStatus = productStatus;
    }

    public Long getProductStatus() {
        return productStatus;
    }

    public void setCategoryType(Long categoryType) {
        this.categoryType = categoryType;
    }

    public Long getCategoryType() {
        return categoryType;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("productPrice", getProductPrice())
                .append("productStock", getProductStock())
                .append("productDescription", getProductDescription())
                .append("productIcon", getProductIcon())
                .append("productStatus", getProductStatus())
                .append("categoryType", getCategoryType())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
